//
//  bannerModel.m
//  PhotoCircle
//
//  Created by wujungao on 12/13/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import "bannerModel.h"

@implementation bannerModel

#pragma mark - designated initializer
-(instancetype)initBannerModelWithDict:(NSDictionary *)bannerDict{
    
    self=[super init];
    
    if(self){
        
        [self configBannerModelWithDict:bannerDict];
    }
    
    return self;
}

#pragma mark - config method
-(void)configBannerModelWithDict:(NSDictionary *)bannerDict{
    
    //后续添加
    if(bannerDict[@"uuid"] !=[NSNull null]){
        
        self.UUID=bannerDict[@"uuid"];
    }
    
    if(bannerDict[@"image"] !=[NSNull null]){
        
        self.imageURL=bannerDict[@"image"];
    }
    
    if(bannerDict[@"title"] !=[NSNull null]){
        
        self.title=bannerDict[@"title"];
    }
    
    if(bannerDict[@"category"] !=[NSNull null]){
        
        self.category=bannerDict[@"category"];
    }

    if(bannerDict[@"url"] !=[NSNull null]){
        
        self.url=bannerDict[@"url"];
    }
}

@end
